﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace StringFormatterAddin
{
    public partial class frmStringFormater : Form
    {
        public frmStringFormater()
        {
            InitializeComponent();

        }
        public DialogResult ShowDialog(string oldText,string newText)
        {
            richTextBox1.Text = oldText;
            richTextBox2.Text = newText; 

            return this.ShowDialog(); 
        }

        public string FormaterString 
        {
            get
            {
                return richTextBox2.Text; 
            }
            set
            {
                richTextBox2.Text = value; 
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close(); 
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close(); 
        }

    }
}
